package com.admins.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.sql.Timestamp;
import java.util.Date;

/**
 * @author mis_wu
 * @date 2022/1/2 14:42
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@ApiModel("图片实体类")
public class Image {
    private Long imgId;
    private String imgName;
    private String imgUrl;
    private String colUserId;
    @ApiModelProperty(value="上传时间",dataType = "String")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date colTime;
    private String imgDescript;
}
